export async function loadHTMLComponent(url: string, container: HTMLElement) {
  try {
    const response = await fetch(url)
    const html = await response.text()
    container.innerHTML = html
  } catch (error) {
    console.error('加载失败:', error)
  }
}
